package com.fei.jvmtest.method;

import java.util.ArrayList;
import java.util.List;

public class ReadChar {
	private char[] data;
	private ReadContext readContext;
	
	public ReadChar(char[] data) {
		this.data = data;
		readContext = new ReadContext();
	}
	
	public List<String> read(){
		List<String> paramList = new ArrayList<>();
		
		if(data == null || data.length == 0) return paramList;
		StringBuilder obj = new StringBuilder();
		
		for(int i = 0 ; i < data.length;i++){
			char d = data[i];
			
			if(isObject(d)){
				readContext.setObject(true);
			}
		}
		
		
		
		return paramList;
	}
	
	private boolean isArray(char type){
		return type == '[';
	}
	
	private boolean isObject(char type){
		return type == 'L';
	}
	
	
}
